package com.zimi.mapper;

import com.zimi.model.WfDictionary;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WfDictionaryMapper {
    int deleteByPrimaryKey(Integer dictionaryId);

    int insert(WfDictionary record);

    int insertSelective(WfDictionary record);

    WfDictionary selectByPrimaryKey(Integer dictionaryId);

    int updateByPrimaryKeySelective(WfDictionary record);

    int updateByPrimaryKey(WfDictionary record);

    int updateWfDictionaryByParentId(WfDictionary record);

    List<WfDictionary> selectAll(WfDictionary wfDictionary);

    List<WfDictionary> selectWfDictionaryParent(WfDictionary wfDictionary);

    Integer selectMaxOrderNum(WfDictionary record);

    String selectMaxValue(WfDictionary record);

    Integer deleteWfDictionaryByParentId(Integer dictionaryId);
}